<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:78:"D:\wwwroot\yingyang\public/../application/admin\view\food\ingredient\edit.html";i:1758098789;s:62:"D:\wwwroot\yingyang\application\admin\view\layout\default.html";i:1746006159;s:59:"D:\wwwroot\yingyang\application\admin\view\common\meta.html";i:1746006159;s:61:"D:\wwwroot\yingyang\application\admin\view\common\script.html";i:1746006159;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<meta name="referrer" content="never">
<meta name="robots" content="noindex, nofollow">

<link rel="shortcut icon" href="/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo htmlentities(\think\Config::get('site.version') ?? ''); ?>" rel="stylesheet">

<?php if(\think\Config::get('fastadmin.adminskin')): ?>
<link href="/assets/css/skins/<?php echo htmlentities(\think\Config::get('fastadmin.adminskin') ?? ''); ?>.css?v=<?php echo htmlentities(\think\Config::get('site.version') ?? ''); ?>" rel="stylesheet">
<?php endif; ?>

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config ?? ''); ?>
    };
</script>

    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG && !\think\Config::get('fastadmin.multiplenav') && \think\Config::get('fastadmin.breadcrumb')): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <?php if($auth->check('dashboard')): ?>
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                    <?php endif; ?>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo htmlentities($vo['url'] ?? ''); ?>"><?php echo htmlentities($vo['title'] ?? ''); ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Name'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="<?php echo htmlentities($row['name'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Categories_id'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-categories_id" data-rule="required" data-source="food/categories/index" class="form-control selectpage" name="row[categories_id]" type="text" value="<?php echo htmlentities($row['categories_id'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Smallimage'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-smallimage" class="form-control" size="50" name="row[smallimage]" type="text" value="<?php echo htmlentities($row['smallimage'] ?? ''); ?>">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-smallimage" class="btn btn-danger faupload" data-input-id="c-smallimage" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-smallimage"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>
                    <span><button type="button" id="fachoose-smallimage" class="btn btn-primary fachoose" data-input-id="c-smallimage" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> <?php echo __('Choose'); ?></button></span>
                </div>
                <span class="msg-box n-right" for="c-smallimage"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-smallimage"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('First_category_code'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-first_category_code" data-rule="required" class="form-control" name="row[first_category_code]" type="text" value="<?php echo htmlentities($row['first_category_code'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Second_category_code'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-second_category_code" data-rule="required" class="form-control" name="row[second_category_code]" type="text" value="<?php echo htmlentities($row['second_category_code'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Weight'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weight" class="form-control" step="0.01" name="row[weight]" type="number" value="<?php echo htmlentities($row['weight'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Edible_portion'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-edible_portion" class="form-control" step="0.01" name="row[edible_portion]" type="number" value="<?php echo htmlentities($row['edible_portion'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Water_content'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-water_content" class="form-control" step="0.01" name="row[water_content]" type="number" value="<?php echo htmlentities($row['water_content'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Energy_kilocalorie'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-energy_kilocalorie" class="form-control" step="0.01" name="row[energy_kilocalorie]" type="number" value="<?php echo htmlentities($row['energy_kilocalorie'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Energy_kj'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-energy_kj" class="form-control" step="0.01" name="row[energy_kj]" type="number" value="<?php echo htmlentities($row['energy_kj'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Protein'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-protein" class="form-control" step="0.01" name="row[protein]" type="number" value="<?php echo htmlentities($row['protein'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Fat'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fat" class="form-control" step="0.01" name="row[fat]" type="number" value="<?php echo htmlentities($row['fat'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Carbohydrate'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-carbohydrate" class="form-control" step="0.01" name="row[carbohydrate]" type="number" value="<?php echo htmlentities($row['carbohydrate'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Dietary_fiber'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dietary_fiber" class="form-control" step="0.01" name="row[dietary_fiber]" type="number" value="<?php echo htmlentities($row['dietary_fiber'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Cholesterol'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cholesterol" class="form-control" step="0.01" name="row[cholesterol]" type="number" value="<?php echo htmlentities($row['cholesterol'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Ash'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ash" class="form-control" step="0.01" name="row[ash]" type="number" value="<?php echo htmlentities($row['ash'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Vitamin_a'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-vitamin_a" class="form-control" step="0.01" name="row[vitamin_a]" type="number" value="<?php echo htmlentities($row['vitamin_a'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Thiamine'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-thiamine" class="form-control" step="0.01" name="row[thiamine]" type="number" value="<?php echo htmlentities($row['thiamine'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Riboflavin'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-riboflavin" class="form-control" step="0.01" name="row[riboflavin]" type="number" value="<?php echo htmlentities($row['riboflavin'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Vitamin_b6'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-vitamin_b6" class="form-control" step="0.01" name="row[vitamin_b6]" type="number" value="<?php echo htmlentities($row['vitamin_b6'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Vitamin_b12'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-vitamin_b12" class="form-control" step="0.01" name="row[vitamin_b12]" type="number" value="<?php echo htmlentities($row['vitamin_b12'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Vitamin_d'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-vitamin_d" class="form-control" step="0.01" name="row[vitamin_d]" type="number" value="<?php echo htmlentities($row['vitamin_d'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Vitamin_k'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-vitamin_k" class="form-control" step="0.01" name="row[vitamin_k]" type="number" value="<?php echo htmlentities($row['vitamin_k'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Folic_acid'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-folic_acid" class="form-control" step="0.01" name="row[folic_acid]" type="number" value="<?php echo htmlentities($row['folic_acid'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Nicotine'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-nicotine" class="form-control" step="0.01" name="row[nicotine]" type="number" value="<?php echo htmlentities($row['nicotine'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Vitamin_c'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-vitamin_c" class="form-control" step="0.01" name="row[vitamin_c]" type="number" value="<?php echo htmlentities($row['vitamin_c'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Vitamin_e'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-vitamin_e" class="form-control" step="0.01" name="row[vitamin_e]" type="number" value="<?php echo htmlentities($row['vitamin_e'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Biotin'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-biotin" class="form-control" step="0.01" name="row[biotin]" type="number" value="<?php echo htmlentities($row['biotin'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Acid'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-acid" class="form-control" step="0.01" name="row[acid]" type="number" value="<?php echo htmlentities($row['acid'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Choline'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-choline" class="form-control" step="0.01" name="row[choline]" type="number" value="<?php echo htmlentities($row['choline'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Calcium'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-calcium" class="form-control" step="0.01" name="row[calcium]" type="number" value="<?php echo htmlentities($row['calcium'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Phosphorus'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-phosphorus" class="form-control" step="0.01" name="row[phosphorus]" type="number" value="<?php echo htmlentities($row['phosphorus'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Potassium'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-potassium" class="form-control" step="0.01" name="row[potassium]" type="number" value="<?php echo htmlentities($row['potassium'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Sodium'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sodium" class="form-control" step="0.01" name="row[sodium]" type="number" value="<?php echo htmlentities($row['sodium'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Magnesium'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-magnesium" class="form-control" step="0.01" name="row[magnesium]" type="number" value="<?php echo htmlentities($row['magnesium'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Iron'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-iron" class="form-control" step="0.01" name="row[iron]" type="number" value="<?php echo htmlentities($row['iron'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Zinc'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-zinc" class="form-control" step="0.01" name="row[zinc]" type="number" value="<?php echo htmlentities($row['zinc'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Selenium'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-selenium" class="form-control" step="0.01" name="row[selenium]" type="number" value="<?php echo htmlentities($row['selenium'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Copper'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-copper" class="form-control" step="0.01" name="row[copper]" type="number" value="<?php echo htmlentities($row['copper'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Manganese'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-manganese" class="form-control" step="0.01" name="row[manganese]" type="number" value="<?php echo htmlentities($row['manganese'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Iodine'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-iodine" class="form-control" step="0.01" name="row[iodine]" type="number" value="<?php echo htmlentities($row['iodine'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Carotene'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-carotene" class="form-control" step="0.01" name="row[carotene]" type="number" value="<?php echo htmlentities($row['carotene'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Retinol'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-retinol" class="form-control" step="0.01" name="row[retinol]" type="number" value="<?php echo htmlentities($row['retinol'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Niacin'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-niacin" class="form-control" step="0.01" name="row[niacin]" type="number" value="<?php echo htmlentities($row['niacin'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Alpha_vitamin_e'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-alpha_vitamin_e" class="form-control" step="0.01" name="row[alpha_vitamin_e]" type="number" value="<?php echo htmlentities($row['alpha_vitamin_e'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Status'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            <?php if(is_array($statusList) || $statusList instanceof \think\Collection || $statusList instanceof \think\Paginator): if( count($statusList)==0 ) : echo "" ;else: foreach($statusList as $key=>$vo): ?>
            <label for="row[status]-<?php echo $key; ?>"><input id="row[status]-<?php echo $key; ?>" name="row[status]" type="radio" value="<?php echo $key; ?>" <?php if(in_array(($key), is_array($row['status'])?$row['status']:explode(',',$row['status']))): ?>checked<?php endif; ?> /> <?php echo $vo; ?></label> 
            <?php endforeach; endif; else: echo "" ;endif; ?>
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Weigh'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="<?php echo htmlentities($row['weigh'] ?? ''); ?>">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled"><?php echo __('OK'); ?></button>
        </div>
    </div>
</form>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="/assets/js/require.min.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>

    </body>
</html>
